package dbops

import (
	_ "github.com/go-sql-driver/mysql" //匿名导入
	"log"
)

//添加视频ID到视频删除记录表
func AddVideoDeletionRecord(vid string) error{
	stmtIn,err:=dbConn.Prepare("INSERT INTO video_del_rec(video_id) VALUES(?)")
	defer stmtIn.Close()
	if err!=nil{
		return err
	}
	_,err=stmtIn.Exec(vid)
	if err==nil{
		log.Println("插入成功")
	}
	return err
}